/*
 * =====================================================================================
 *
 *       Filename:  CharSet.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2015年03月28日 15时41分45秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  LiuYi (), swliuyi@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#ifndef CHARSET_H
#define CHARSET_H
#include <set>
#include  <iostream>
#include  <fstream>
using namespace std;
class CharSet
{
    private:
        set<string> m_charSet;
    public:
        CharSet(string path)
        {
            ifstream fin(path.c_str());
            if(!fin)
            {
                cerr << "can not open the file " << path << endl;
                return;
            }
            string line;
            while(getline(fin, line))
            {
                m_charSet.insert(line);
            }
        }
};
#endif
